package com.shrct.businessprocess.common.impl;

import com.shrct.businessprocess.common.RCSystemConfiguration;
import com.shrct.businessprocess.common.RCSystemConfigurationDAO;
import edu.fudan.mylang.pf.BaseDAOService;
import edu.fudan.mylang.pf.IGenericQuery;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.springframework.stereotype.Service;

@Service("com.shrct.businessprocess.common.RCSystemConfigurationDAO")
public class RCSystemConfigurationDAOImpl extends BaseDAOService<RCSystemConfiguration> implements RCSystemConfigurationDAO {
  public RCSystemConfiguration getConfiguration() {IGenericQuery<RCSystemConfiguration> query=getObjectFactory().createGenericQuery(RCSystemConfiguration.class,"select e from com.shrct.businessprocess.common.impl.RCSystemConfigurationImpl as e   where  e.active = 1      ");
    RCSystemConfiguration _uniqueResult = query.uniqueResult();
    return _uniqueResult;
  }
  
  public void update(final RCSystemConfiguration value, final Procedure1<? super RCSystemConfiguration> preUpdate) {
    preUpdate.apply(value);
  }
}
